window.onload = function (){ //执行完网页的结构再执行js
    function $(id){ // 封装函数
        return document.getElementById(id); //返回值返回到形参里面。
    }
    window.onscroll = function (){
        { 
        $("header").style.height = "360px"; //把头部背景图片的高改变为360像素
        $("header_body").style.height = "360px"; //把头部背景图片的身体高度改变为360像素
        $("header").style.background = "url(img/banner-x-top.jpg) no-repeat center center"; //把头部背景图片更换为另一张图片 
        }
        
    }
        through.onmousemove = function(){ //触碰头部导航显示下拉列表
            Bright.style.display = "block";
        }
        hand.onmouseout = function(){ //触碰手机隐藏下拉列表
            Bright.style.display = "none";
        }
        inone.onmouseout = function(){ //触碰搜索图标隐藏下拉列表
            Bright.style.display = "none";
        }
        rnone.onmouseout = function(){ //触碰导航栏右侧隐藏下拉列表
            Bright.style.display = "none";
        }
        main.onmouseout = function(){ //触碰轮播图隐藏下拉列表
            Bright.style.display = "none";
        }
        Login.onmousemove = function(){ //触碰召唤师登陆显示下拉框
            Logoff.style.display = "block";
        }
        Login.onmouseout = function(){ //移出召唤师登陆则会隐藏下拉框
            Logoff.style.display = "none";
        }
        Logi.onclick = function(){ //点击 召唤师请"登陆" 弹出QQ登陆模态框
            denglukuang.style.display = "block";
        }
        guanbi.onclick = function() { //点击 叉号 关闭QQ登陆的模态框
            denglukuang.style.display = "none";
        }
        newbie.onclick = function(){ //点击新手必备显示覆盖的内容
            touch.style.display = "block";
        }
        
}